const { override, fixBabelImports, addLessLoader } = require('customize-cra');

process.env.GENERATE_SOURCEMAP = "false";
module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        libraryDirectory: 'es',
        style: true
    }),
    addLessLoader({
        javascriptEnabled: true,
        modifyVars: {
            '@primary-color': '#f63e39',
            "@brand-primary": "#f63e39",
            '@notice-bar-fill': 'rgba(0,0,0,0)',
            '@notice-bar-color': '#666'
        }
    })
)